Access modifiers are keywords used to specify the declared accessibility of a member or a type 访问修饰符是一些关键字,用于指定声明的成员或类型的可访问性。
All enumeration members have public access , and you cannot use any access modifiers on them 所有枚举成员都具有public访问权限,您不能对这些成员使用任何访问修饰符。
By default , the blue text contains application keywords , access modifiers , and method return types 默认情况下,蓝色文本包含应用程序关键字、访问修饰符和方法返回类型。
For example , groovy doesn t require semicolons , and it makes variable types and access modifiers optional 例如, groovy不要求使用分号,变量类型和访问修饰符也是可选的。
Local variables inside a procedure default to public access , and you cannot use any access modifiers on them 过程内的局部变量默认为公共访问,您不能对它们使用任何访问修饰符。
Access modifiers are keywords added to the class , struct , or member declaration to specify these restrictions 访问修饰符是添加到类、结构或成员声明的关键字,用以指定这些限制。
Because the expression evaluator ignores access modifiers , it is possible for an unexpected load to be invoked 方法。由于表达式计算器忽略访问修饰符,因此有可能调用意外的加载。
To create the new property , the encapsulate field operation changes the access modifier for the field that you want to encapsulate to 为了创建新属性, “封装字段”操作将为要封装为
Access modifiers do not affect the class or struct itself it always has access to itself and all of its own members 访问修饰符不影响类或结构自身- -它始终能够访问自身及其所有成员。
For a discussion of the access modifiers you can assign to elements within a package , see the access modifiers 有关您可以在一个包内为元素指定哪些访问修饰符的讨论,请参见访问修饰符